﻿<UserControl x:Class="KSAWPFDemo.InkCanvas.KSAInkCanvas"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Background="White">    
    <Grid Name="BackgroundGrid">

            <Canvas 
                x:Name="DrawCanvas"
                TouchDown="Canvas_TouchDown" TouchUp="Canvas_TouchUp"
                TouchMove="Canvas_TouchMove"  TouchLeave="Canvas_TouchLeave" 
                TouchEnter="Canvas_TouchEnter"                 
                VerticalAlignment="Stretch" 
                Background="Transparent"
                IsManipulationEnabled="True"
                Width="1620"
                HorizontalAlignment="Left"                
            />
        <ListView HorizontalAlignment="Right" Width="300" Background="Azure" Name="ImageList" 
                  TouchDown="ImageList_TouchDown_1"  
                  ScrollViewer.PanningMode="VerticalOnly" ScrollViewer.PanningDeceleration="0.001" ScrollViewer.PanningRatio="3"
                  ManipulationDelta="ImageList_ManipulationDelta_1"
                  ManipulationCompleted="ImageList_ManipulationCompleted_1"
                  IsManipulationEnabled="True"
                  Opacity="0">
        </ListView>                        
        <Button Name="LoadImageButton" PreviewTouchDown="LoadImageButton_PreviewTouchDown_1" Width="90" Height="90" Margin="0,0,100,100" HorizontalAlignment="Right" VerticalAlignment="Bottom" Opacity="0" IsHitTestVisible="False">Load</Button>
    </Grid>
</UserControl>
